@extends('admin.layouts.app')
@section('content')
@if(Session::has('success'))
<div class="alert alert-success alert-block fade in">
    <button type="button" class="close close-sm" data-dismiss="alert"><i class="fa fa-times"></i></button>
    <h4><i class="icon-ok-sign"></i>成功!</h4>
</div>
@endif
<div class="panel panel-default">
    <div class="panel-body">
        @if ($list)
            <table class="table table-bordered table-striped">
                <tr class="success">
                    <td>栏目名称</td>
                    <td>操作</td>
                </tr>
                @foreach($list as $key)
                <tr>
                    <td>{{ $key['htmls'] }}{{ $key['name'] }}</td>
                    <td>
                        <a class="btn btn-primary btn-xs" href="{{url('info/model',['model_id'=>$key['cate_id']])}}">管理</a>
                    </td>
                </tr>
                @endforeach
            </table>
        {{$page->links()}}
        @else
            暂无数据
        @endif
    </div>
</div>
@endsection



@section('js')
<script src="{{asset('adminex')}}/layer/layer.js"></script>
<script type="text/javascript">
</script>
@endsection